<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>数字类型</title>
</head>
<body>
    <button onclick="funNum()">点我一下</button>
</body>
<script>
    function funNum(){
        // 字面量赋值
        var age = 18
        var salary = 3658.32
        console.log("age=" + age + "，age的数据类型是："+ typeof(age))
        console.log("salary=" + salary + "，salary的数据类型是："+ typeof(salary))

        var a = -123.36
        var  b = -3698
        console.log(a)
        console.log(b)

        // 可以通过创建对象的方式进行赋值(构造函数赋值)
        var c = new Number(698)
        console.log(c)
    }
</script>
</html>